a11y: Add testing API
authorEmmanuele Bassi <ebassi@gnome.org>
Fri, 17 Jul 2020 13:39:56 +0000 (14:39 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Sun, 26 Jul 2020 19:31:15 +0000 (20:31 +0100)
commit0d87f8cd62358be481050722f7d7847a428670de
tree31959c4f9a227845a86e495d9dd4ccd236e97f39
parent52c1fb8dfed7a60db9aab756d1c067234b508316
a11y: Add testing API

We want to test the accessibility API, as well as the implementation
inside each widget. For that, we should expose an API that lets us
verify that a GtkAccessible has a given role, as well as a given
property.

The API follows the pattern of other GTest API:

 - a macro to assert that a condition is respected
 - a function that prints out the error message in case of failure
gtk/gtk.h
gtk/gtkaccessible.h
gtk/gtkatcontext.c
gtk/gtkatcontext.h
gtk/gtkatcontextprivate.h
gtk/gtktestatcontext.c
gtk/gtktestatcontext.h [new file with mode: 0644]
gtk/gtktestatcontextprivate.h
gtk/meson.build